
var db= require("../../javascript/mysql");
var mysql = new db.mysqlClient("accident");
function genProductInfo() {
    plan = {
        planA: {
            "name": "大金刚个人综合意外伤害保障计划",
            "company": "上海人寿",
            "year": "18-62",
            "days": "1y",
            "people_count": "1",
            "accident_death": "200000",
            "accident_medical": "2000",
            "accident_hospital": "10/天",
            "airplane_death": "500000",
            "ship_death": "100000",
            "train_death": "100000",
            "netTaxi_death": "20000",
            "price": "118.00"
        },
        planB: {
            "name": "大金刚个人综合意外伤害保障计划",
            "company": "上海人寿",
            "year": "18-62",
            "days": "1y",
            "people_count": "1",
            "accident_death": "300000",
            "accident_medical": "3000",
            "accident_hospital": "20/天",
            "airplane_death": "700000",
            "ship_death": "200000",
            "train_death": "200000",
            "netTaxi_death": "30000",
            "price": "178.00"
        },
        planC: {
            "name": "大金刚个人综合意外伤害保障计划",
            "company": "上海人寿",
            "year": "18-62",
            "days": "1y",
            "people_count": "1",
            "accident_death": "500000",
            "accident_medical": "5000",
            "accident_hospital": "30/天",
            "airplane_death": "1000000",
            "ship_death": "300000",
            "train_death": "300000",
            "netTaxi_death": "50000",
            "price": "298.00"
        }
    }
    for( k in plan ){
        data = plan[k];
        mysql.insertData( data );
        
    }
    mysql.close();
}
